struct Circle {
    radius: i32,
}

impl ToString for Circle {
    fn to_string(&self) -> String {
        format!("Circle of radius {:?}", self.radius)
    }
}

// impl Display for Circle {
//     fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
//         return write!(f, "{}", self.radius);
//     }
// }

fn main() {
    println!("Hello, world!");
    let circle: Circle = Circle { radius: 6 };
    println!("{}", circle.to_string());

    let parsed: i32 = "5".parse().unwrap();
    let turbo_parsed = "10".parse::<i32>().unwrap();
    let sum = parsed + turbo_parsed;
    println!("Sum : {:?}", sum);
}